package com.ruoyi.system.domain.employ;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

public class Article extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /**  */
    @Excel(name = "文章标题")
    private String title;

    /**  */
    @Excel(name = "文章内容")
    private String content;



    /**  */
    @Excel(name = "图片链接")
    private String imageUrl;

    /**  */
    @Excel(name = "外部链接")
    private String link;

    /**  */
    @Excel(name = "点赞数")
    private Integer likes;

    /**  */
    @Excel(name = "浏览数")
    private Integer views;

    /**  */
    @Excel(name = "是否已删除 1-删除 0未删除")
    private Integer isDeleted;

    /**  */
    @Excel(name = "是否置顶 1-置顶 0 未置顶")
    private Integer isPinned;

    /**  */
    @Excel(name = "是否推荐 1-是否推荐 0未推荐")
    private Integer isRecommended;

    /**  */
    @Excel(name = "作者id")
    private Long authorId;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /**  */
    @Excel(name = "文章状态")
    private String status;

    @Excel(name = "标签名称")
    private String tags;


    @Excel(name = "标签id")
    private String tagId;

    public String getTagId() {
        return tagId;
    }

    public void setTagId(String tagId) {
        this.tagId = tagId;
    }


    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setAuthorId(Long authorId)
    {
        this.authorId = authorId;
    }

    public Long getAuthorId()
    {
        return authorId;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getViews() {
        return views;
    }

    public void setViews(Integer views) {
        this.views = views;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getIsPinned() {
        return isPinned;
    }

    public void setIsPinned(Integer isPinned) {
        this.isPinned = isPinned;
    }

    public Integer getIsRecommended() {
        return isRecommended;
    }

    public void setIsRecommended(Integer isRecommended) {
        this.isRecommended = isRecommended;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("imageUrl", getImageUrl())
                .append("link", getLink())
                .append("likes", getLikes())
                .append("views", getViews())
                .append("isDeleted", getIsDeleted())
                .append("isPinned", getIsPinned())
                .append("isRecommended", getIsRecommended())
                .append("authorId", getAuthorId())
                .append("createdTime", getCreatedTime())
                .append("updatedTime", getUpdatedTime())
                .append("status", getStatus())
                .toString();
    }
}
